
<%@ page import="apralms.Product" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'product.label', default: 'Product')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-product" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
			</ul>
		</div>
		<div id="show-product" class="content scaffold-show" role="main">
			<h1>
				<g:message code="default.show.label" args="[entityName]" />
				<g:link controller="project" action="show" id="${productInstance?.project?.id}">${productInstance?.project?.encodeAsHTML()}</g:link>
				<g:link controller="system" action="show" id="${productInstance?.system?.id}">${productInstance?.system?.encodeAsHTML()}</g:link>
			</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list product">
			
				<g:if test="${productInstance?.code}">
				<li class="fieldcontain">
					<span id="code-label" class="property-label"><g:message code="product.code.label" default="Code" /></span>
					
						<span class="property-value" aria-labelledby="code-label"><g:fieldValue bean="${productInstance}" field="code"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.name}">
				<li class="fieldcontain">
					<span id="name-label" class="property-label"><g:message code="product.name.label" default="Name" /></span>
					
						<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${productInstance}" field="name"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.type}">
				<li class="fieldcontain">
					<span id="type-label" class="property-label"><g:message code="product.type.label" default="Type" /></span>
					
						<span class="property-value" aria-labelledby="type-label"><g:fieldValue bean="${productInstance}" field="type"/></span>
					
				</li>
				</g:if>
			
				<li class="fieldcontain">
					<span id="profession-label" class="property-label"><g:message code="product.profession.label" default="Profession" /></span>
					
						<span class="property-value" aria-labelledby="profession-label"><g:formatBoolean boolean="${productInstance?.profession}" /></span>
					
				</li>

				<li class="fieldcontain">
					<span id="finished-label" class="property-label"><g:message code="product.finished.label" default="Finished" /></span>
					
						<span class="property-value" aria-labelledby="finished-label"><g:formatBoolean boolean="${productInstance?.finished}" /></span>
					
				</li>
							
				<g:if test="${0 && productInstance?.project}">
				<li class="fieldcontain">
					<span id="project-label" class="property-label"><g:message code="product.project.label" default="Project" /></span>
					
						<span class="property-value" aria-labelledby="project-label"><g:link controller="project" action="show" id="${productInstance?.project?.id}">${productInstance?.project?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${0 && productInstance?.system}">
				<li class="fieldcontain">
					<span id="system-label" class="property-label"><g:message code="product.system.label" default="System" /></span>
					
						<span class="property-value" aria-labelledby="system-label"><g:link controller="system" action="show" id="${productInstance?.system?.id}">${productInstance?.system?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
				
				<g:if test="${productInstance?.classParas}">
				<li class="fieldcontain">
					<span id="classParas-label" class="property-label"><g:message code="product.classParas.label" default="ClassParas" /></span>
					
						<span class="property-value" aria-labelledby="classParas-label"><g:fieldValue bean="${productInstance}" field="classParas"/></span>						
					
				</li>
				</g:if>				
				
				<g:if test="${productInstance?.class1}">
				<li class="fieldcontain">
					<span id="class1-label" class="property-label"><g:message code="product.class1.label" default="Class1" /></span>
					
						<span class="property-value" aria-labelledby="class1-label"><g:message code="product.class1.${productInstance?.class1}" default="Class1" /></span>						
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class2}">
				<li class="fieldcontain">
					<span id="class2-label" class="property-label"><g:message code="product.class2.label" default="Class2" /></span>
					
						<span class="property-value" aria-labelledby="class2-label"><g:message code="product.class2.${productInstance?.class2}" default="Class2"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class3}">
				<li class="fieldcontain">
					<span id="class3-label" class="property-label"><g:message code="product.class3.label" default="Class3" /></span>
					
						<span class="property-value" aria-labelledby="class3-label"><g:message code="product.class3.${productInstance?.class3}" default="Class3"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class4}">
				<li class="fieldcontain">
					<span id="class4-label" class="property-label"><g:message code="product.class4.label" default="Class4" /></span>
					
						<span class="property-value" aria-labelledby="class4-label"><g:message code="product.class4.${productInstance?.class4}" default="Class4"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class5}">
				<li class="fieldcontain">
					<span id="class5-label" class="property-label"><g:message code="product.class5.label" default="Class5" /></span>
					
						<span class="property-value" aria-labelledby="class5-label"><g:message code="product.class5.${productInstance?.class5}" default="Class5"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class6}">
				<li class="fieldcontain">
					<span id="class6-label" class="property-label"><g:message code="product.class6.label" default="Class6" /></span>
					
						<span class="property-value" aria-labelledby="class6-label"><g:message code="product.class6.${productInstance?.class6}" default="Class6"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class7}">
				<li class="fieldcontain">
					<span id="class7-label" class="property-label"><g:message code="product.class7.label" default="Class7" /></span>
					
						<span class="property-value" aria-labelledby="class7-label"><g:message code="product.class7.${productInstance?.class7}" default="Class7"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class8}">
				<li class="fieldcontain">
					<span id="class8-label" class="property-label"><g:message code="product.class8.label" default="Class8" /></span>
					
						<span class="property-value" aria-labelledby="class8-label"><g:message code="product.class8.${productInstance?.class8}" default="Class8"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class9}">
				<li class="fieldcontain">
					<span id="class9-label" class="property-label"><g:message code="product.class9.label" default="Class9" /></span>
					
						<span class="property-value" aria-labelledby="class9-label"><g:message code="product.class9.${productInstance?.class9}" default="Class9"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.class10}">
				<li class="fieldcontain">
					<span id="class10-label" class="property-label"><g:message code="product.class10.label" default="Class10" /></span>
					
						<span class="property-value" aria-labelledby="class10-label"><g:message code="product.class10.${productInstance?.class10}" default="Class10"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="product.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${productInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${productInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="product.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${productInstance?.lastUpdated}" /></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${productInstance?.id}" />
					<g:link class="edit" action="edit" id="${productInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
